﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChongJu.EventManager.Weight
{
    public class WeightEvent
    {
        /// <summary>
        /// 前端称接收到 握手信息
        /// </summary>
        public static event Action<int> WeightReciveEventReport;
        public static void OnWeightRecive(int val)
        {
            WeightReciveEventReport?.Invoke(val);
        }


        /// <summary>
        /// 称重瞬时数据
        /// </summary>
        public static event Action<float> InstantWeightReciveEventReport;
        public static void OnInstantWeight(float val)
        {
            InstantWeightReciveEventReport?.Invoke(val);
        }

        /// <summary>
        /// 广电入栈信号
        /// </summary>
        public static event Action XhInputEventReport;
        public static void OnXhInput()
        {
            XhInputEventReport?.Invoke();
        }
    }
}
